﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Chinaer.Dao
{
    public class CustomerLoginDetailDAO:Repository,Chinaer.IDao.ICustomerLoginDetailDAO
    {
        private Chinaer.IDao.ICustomerLoginDetailDAO customerLoginDetailDAO = new Chinaer.Dao.EF.CustomerLoginDetailDAO();
        public bool EnableTrack
        {
            get
            {
                throw new NotImplementedException();
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        public IList<Model.Entities.Model_CustomerLoginDetails> Query(string sql, int pageIndex, out int recordCount, int pageSize, params System.Data.SqlClient.SqlParameter[] sqlParams)
        {
            return customerLoginDetailDAO.Query(sql, pageIndex, out recordCount, pageSize, sqlParams);
        }

        public Model.Entities.Model_CustomerLoginDetails GetByID(string id)
        {
            return customerLoginDetailDAO.GetByID(id);
        }

        public bool Exists(string id)
        {
            return customerLoginDetailDAO.Exists(id);
        }

        public bool Add(Model.Entities.Model_CustomerLoginDetails entity)
        {
            return customerLoginDetailDAO.Add(entity);
        }

        public bool Update(Model.Entities.Model_CustomerLoginDetails entity)
        {
            return customerLoginDetailDAO.Update(entity);
        }

        public bool Delete(Model.Entities.Model_CustomerLoginDetails entity)
        {
            return customerLoginDetailDAO.Delete(entity);
        }

        public bool Delete(string id)
        {
            return customerLoginDetailDAO.Delete(id);
        }

        public int DeleteByIDs(IList<string> listID)
        {
            return customerLoginDetailDAO.DeleteByIDs(listID);
        }
    }
}
